export interface ISkuData {
  records: ISkuItem[]
  total: number
  size: number
  current: number
  orders: any[]
  optimizeCountSql: boolean
  hitCount: boolean
  countId?: any
  maxLimit?: any
  searchCount: boolean
  pages: number
}

export interface ISkuItem {
  id: number
  createTime: string
  updateTime: string
  spuId: number
  price: number
  skuName: string
  skuDesc: string
  weight: string
  tmId?: number
  category3Id: number
  skuDefaultImg: string
  isSale: number
  skuImageList?: any
  skuAttrValueList?: any
  skuSaleAttrValueList?: any
}

export interface ISkuInfo {
  id: number
  createTime: string
  updateTime: string
  spuId: number
  price: number
  skuName: string
  skuDesc: string
  weight: string
  tmId: number
  category3Id: number
  skuDefaultImg: string
  isSale: number
  skuImageList: SkuImageList[]
  skuAttrValueList: SkuAttrValueList[]
  skuSaleAttrValueList: SkuSaleAttrValueList[]
}

interface SkuSaleAttrValueList {
  id: number
  createTime: string
  updateTime: string
  skuId: number
  spuId: number
  saleAttrValueId: number
  saleAttrId: number
  saleAttrName: string
  saleAttrValueName: string
}

interface SkuAttrValueList {
  id: number
  createTime: string
  updateTime: string
  attrId: number
  valueId: number
  skuId: number
  attrName: string
  valueName: string
}

interface SkuImageList {
  id: number
  createTime: string
  updateTime: string
  skuId: number
  imgName: string
  imgUrl: string
  spuImgId: number
  isDefault: string
}
